package com.igeek.collateral.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;
import java.util.Set;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评估机构
 * </p>
 *
 * @author author
 * @since 2024-07-04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("agency")
@ApiModel(value="Agency对象", description="评估机构")
public class Agency implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评估机构ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评估机构名字")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    //一对多 关联评估报告
    @TableField(exist = false)
    private List<Assess> assessList;

}
